package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.CreateAssistCalculateEmployeeDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.UpdateAssistCalculateEmployeeDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateEmployee;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.GetAssistCalculateEmployeeVO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateEmployeeVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateEmployeeConvertor {

    AssistCalculateEmployeeConvertor INSTANCE = Mappers.getMapper(AssistCalculateEmployeeConvertor.class);

    AssistCalculateEmployee convertDTOToEntity(CreateAssistCalculateEmployeeDTO dto);


    AssistCalculateEmployee convertDTOToEntity(UpdateAssistCalculateEmployeeDTO dto);

    List<ListAssistCalculateEmployeeVO> convertEntityToVO(List<AssistCalculateEmployee> entities);

    GetAssistCalculateEmployeeVO convertEntityToVO(AssistCalculateEmployee entity);
}
